package com.xiaoy.core.basic.organization.entity;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.util.store.config.ConfigTable;
import com.xiaoy.util.store.config.ConfigTableBasic;


@Entity
@Table(name = ConfigTableBasic.Organization.ORGANIZATION)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
@SequenceGenerator(sequenceName = ConfigTableBasic.Organization.ORGANIZATION+"_SEQ", name = ConfigTable.Basic.ORGANIZATION+"_SEQ", allocationSize = 1)
public class Organization extends Party{
	
}
